package top.wu2020.lazy.ws.chat.infrastructure.converter;

import top.wu2020.lazy.ws.chat.domain.model.mail.code.records.MailCodeRecords;
import top.wu2020.lazy.ws.chat.infrastructure.entity.MailCodeRecordsDO;
import org.mapstruct.factory.Mappers;
import org.mapstruct.Mapper;
/**
 * describe 邮箱验证码记录 
 *
 * @author Jia wei Wu
 * @date 2024/05/27 09:30 上午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter 
 **/
@Mapper
public interface MailCodeRecordsConverter {


    /**
     * describe MapStruct 创建的代理对象
     *
     
     
     
     * @author Jia wei Wu
     * @date 2024/05/27 09:30 上午
     **/
    MailCodeRecordsConverter INSTANCE = Mappers.getMapper(MailCodeRecordsConverter.class);
    /**
     * describe 实体对象 转换成领域对象
     *
     * @param mailCodeRecordsDO 邮箱验证码记录实体对象     
     * @return {@link MailCodeRecords} 邮箱验证码记录领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/27 09:30 上午
     **/
    MailCodeRecords toMailCodeRecords(MailCodeRecordsDO mailCodeRecordsDO);
    /**
     * describe 领域对象 转换成实体对象
     *
     * @param mailCodeRecords 邮箱验证码记录领域对象     
     * @return {@link MailCodeRecordsDO} 邮箱验证码记录实体对象     
     
     * @author Jia wei Wu
     * @date 2024/05/27 09:30 上午
     **/
     MailCodeRecordsDO fromMailCodeRecords(MailCodeRecords mailCodeRecords); 
}